﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PTools.SharePointEntity.Attributes
{
    /// <summary>
    /// This attribute specifies which SPList this entity belongs to
    /// </summary>
    [AttributeUsage(AttributeTargets.Class)]
    public class ListAttribute : Attribute
    {
        #region Constructor
        /// <summary>
        /// Specify the list that this entity belongs to
        /// </summary>
        /// <param name="listName">The Internal name of the SPList</param>
        public ListAttribute(string listName) 
        {
            this.ListName = listName;
        }
        #endregion

        #region Properties
        /// <summary>
        /// The Internal name of the SPList
        /// </summary>
        public string ListName { get; set; }
        #endregion

    }
}
